import request from '@/utils/request'
var PATH = "/commodity"
export default {
    //推荐商品
    getListComm(page,size,key) {
        return request({
            url: `${PATH}/listTop?page=${page}&size=${size}&key=${key}`,
            method: "get"
        })
    },

    /**
     * 
     * @param {当前页数} page 
     * @param {分页的大小} size 
     * @param {分页名} srName 
     * @returns 
     */
    getList(page,size,srName){
        return request({
            url:`${PATH}/getList?page=${page}&size=${size}&srName=${srName}`,
            method:"get"
        })
    }

 
}